import Vue from 'vue';
import Router from 'vue-router';

Vue.use(Router);

export default new Router({
    routes: [{
            path: '/',
            redirect: '/jcjla'
        },
        {
            path: '/',
            component: () =>
                import ( /* webpackChunkName: "home" */ '../components/common/Home.vue'),
            meta: { title: '自述文件' },
            children: [{
                    path: '/dashboard',
                    component: () =>
                        import ( /* webpackChunkName: "dashboard" */ '../components/page/Dashboard.vue'),
                    meta: { title: '系统首页' }
                },
                {
                    path: '/tongzs',
                    component: () =>
                        import ( /* webpackChunkName: "icon" */ '../components/page/Tongzs.vue'),
                    meta: { title: '检查记录' }
                },
                {
                    path: '/cldw',
                    component: () =>
                        import ( /* webpackChunkName: "icon" */ '../components/page/Cldw.vue'),
                    meta: { title: '车辆定位' }
                },


                {
                    path: '/lssj',
                    component: () =>
                        import ( /* webpackChunkName: "icon" */ '../components/page/Lssj.vue'),
                    meta: { title: '检查记录' }
                },

                {
                    path: '/hjall',
                    component: () =>
                        import ( /* webpackChunkName: "icon" */ '../components/page/Hjall.vue'),
                    meta: { title: '检查记录' }
                },

                {
                    path: '/jindugl',
                    component: () =>
                        import ( /* webpackChunkName: "icon" */ '../components/page/Jindugl.vue'),
                    meta: { title: '检查记录' }
                },
                {
                    path: '/jdall',
                    component: () =>
                        import ( /* webpackChunkName: "icon" */ '../components/page/Jdall.vue'),
                    meta: { title: '检查记录' }
                },
                {
                    path: '/fadan',
                    component: () =>
                        import ( /* webpackChunkName: "icon" */ '../components/page/Fadan.vue'),
                    meta: { title: '检查记录' }
                },
                {
                    path: '/zlkk',
                    component: () =>
                        import ( /* webpackChunkName: "icon" */ '../components/page/Zlkk.vue'),
                    meta: { title: '检查记录' }
                },
                {
                    path: '/jcjl',
                    component: () =>
                        import ( /* webpackChunkName: "icon" */ '../components/page/Jcjl.vue'),
                    meta: { title: '检查记录' }
                },
                {
                    path: '/zmgz',
                    component: () =>
                        import ( /* webpackChunkName: "icon" */ '../components/page/zmgz.vue'),
                    meta: { title: '检查记录' }
                },
                {
                    path: '/zlyh',
                    component: () =>
                        import ( /* webpackChunkName: "icon" */ '../components/page/Zlyh.vue'),
                    meta: { title: '质量隐患' }
                },
                {
                    path: '/renyuan',
                    component: () =>
                        import ( /* webpackChunkName: "icon" */ '../components/page/Renyuan.vue'),
                    meta: { title: '人员明细' }
                },
                {
                    path: '/fbdw',
                    component: () =>
                        import ( /* webpackChunkName: "icon" */ '../components/page/Fbdw.vue'),
                    meta: { title: '检查记录' }
                },
                {
                    path: '/spjk',
                    component: () =>
                        import ( /* webpackChunkName: "icon" */ '../components/page/Spjk.vue'),
                    meta: { title: '检查记录' }
                },
                {
                    path: '/jcjla',
                    component: () =>
                        import ( /* webpackChunkName: "icon" */ '../components/page/Jcjla.vue'),
                    meta: { title: '未整改' }
                },
                {
                    path: '/jcjlb',
                    component: () =>
                        import ( /* webpackChunkName: "icon" */ '../components/page/Jcjlb.vue'),
                    meta: { title: '环境监测' }
                },
                {
                    path: '/jcjlc',
                    component: () =>
                        import ( /* webpackChunkName: "icon" */ '../components/page/Jcjlc.vue'),
                    meta: { title: '整改待验' }
                },
                {
                    path: '/zlall',
                    component: () =>
                        import ( /* webpackChunkName: "icon" */ '../components/page/Zlall.vue'),
                    meta: { title: '数据总览' }
                },
                {
                    path: '/dataall',
                    component: () =>
                        import ( /* webpackChunkName: "icon" */ '../components/page/DataAll.vue'),
                    meta: { title: '数据总览' }
                },
                {
                    path: '/wentilx',
                    component: () =>
                        import ( /* webpackChunkName: "icon" */ '../components/page/Wentilx.vue'),
                    meta: { title: '问题类型' }
                },
                {
                    path: '/wentied',
                    component: () =>
                        import ( /* webpackChunkName: "icon" */ '../components/page/Wentied.vue'),
                    meta: { title: '已整改' }
                },
                {
                    path: '/wentiing',
                    component: () =>
                        import ( /* webpackChunkName: "icon" */ '../components/page/Wentiing.vue'),
                    meta: { title: '未整改' }
                },
                {
                    path: '/icon',
                    component: () =>
                        import ( /* webpackChunkName: "icon" */ '../components/page/Icon.vue'),
                    meta: { title: '商品信息' }
                },

                {
                    path: '/tabs',
                    component: () =>
                        import ( /* webpackChunkName: "tabs" */ '../components/page/Tabs.vue'),
                    meta: { title: '兑换记录' }
                },
                {
                    path: '/form',
                    component: () =>
                        import ( /* webpackChunkName: "form" */ '../components/page/BaseForm.vue'),
                    meta: { title: '智能监测' }
                },

                {
                    path: '/addform',
                    component: () =>
                        import ( /* webpackChunkName: "form" */ '../components/page/AddForm.vue'),
                    meta: { title: '项目查看' }
                },
                {
                    path: '/depart',
                    component: () =>
                        import ( /* webpackChunkName: "form" */ '../components/page/BaseDepart.vue'),
                    meta: { title: '行为类型' }
                },
                {
                    path: '/addpart',
                    component: () =>
                        import ( /* webpackChunkName: "form" */ '../components/page/AddDepart.vue'),
                    meta: { title: '行为记录' }
                },
                {
                    path: '/sssj',
                    component: () =>
                        import ( /* webpackChunkName: "form" */ '../components/page/Sssj.vue'),
                    meta: { title: '实时数据' }
                },
                {
                    path: '/bumen',
                    component: () =>
                        import ( /* webpackChunkName: "form" */ '../components/page/Bumen.vue'),
                    meta: { title: '查看部门' }
                },
                {
                    path: '/addbumen',
                    component: () =>
                        import ( /* webpackChunkName: "form" */ '../components/page/Addbumen.vue'),
                    meta: { title: '添加部门' }
                },
                {
                    path: '/danwei',
                    component: () =>
                        import ( /* webpackChunkName: "form" */ '../components/page/Danwei.vue'),
                    meta: { title: '单位管理' }
                },
                {
                    path: '/worktype',
                    component: () =>
                        import ( /* webpackChunkName: "form" */ '../components/page/Worktype.vue'),
                    meta: { title: '查看工种' }
                },
                {
                    path: '/addworktype',
                    component: () =>
                        import ( /* webpackChunkName: "form" */ '../components/page/AddWorktype.vue'),
                    meta: { title: '添加工种' }
                },
                {
                    // 富文本编辑器组件
                    path: '/editor',
                    component: () =>
                        import ( /* webpackChunkName: "editor" */ '../components/page/VueEditor.vue'),
                    meta: { title: '风险类型信息' }
                },
                {
                    // markdown组件
                    path: '/markdown',
                    component: () =>
                        import ( /* webpackChunkName: "markdown" */ '../components/page/Markdown.vue'),
                    meta: { title: 'markdown编辑器' }
                },
                {
                    // 图片上传组件
                    path: '/upload',
                    component: () =>
                        import ( /* webpackChunkName: "upload" */ '../components/page/Upload.vue'),
                    meta: { title: '添加行为信息' }
                },
                {
                    // vue-schart组件
                    path: '/charts',
                    component: () =>
                        import ( /* webpackChunkName: "chart" */ '../components/page/BaseCharts.vue'),
                    meta: { title: '站点管理' }
                },

                {
                    // 国际化组件
                    path: '/i18n',
                    component: () =>
                        import ( /* webpackChunkName: "i18n" */ '../components/page/I18n.vue'),
                    meta: { title: '隐患信息' }
                },
                {
                    // 权限页面
                    path: '/permission',
                    component: () =>
                        import ( /* webpackChunkName: "permission" */ '../components/page/Permission.vue'),
                    meta: { title: '积分信息' }
                }, ,
                {
                    // 权限页面
                    path: '/from',
                    component: () =>
                        import ( /* webpackChunkName: "permission" */ '../components/page/BaseForm.vue'),
                    meta: { title: '积分信息' }
                },
                {
                    path: '/donate',
                    component: () =>
                        import ( /* webpackChunkName: "donate" */ '../components/page/Donate.vue'),
                    meta: { title: '隐患审核' }
                }
            ]
        },

        {
            path: '/login',
            component: () =>
                import ( /* webpackChunkName: "login" */ '../components/page/Login.vue'),
            meta: { title: '登录' }
        },
        {
            path: '/regist',
            component: () =>
                import ( /* webpackChunkName: "login" */ '../components/page/Regist.vue'),
            meta: { title: '注册' }
        }
    ]
});